package cn.saltice.idempotence.idem.config;

import cn.saltice.idempotence.idem.enums.IdempotentStorageTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @program: idempotence
 * @description:
 * @author: Mr.Liu
 * @create: 2020-10-04 22:48
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "saltice.idempontent")
public class IdempotentProperties {
    /**
     * 一级存储
     */
    private String firstLevelType = IdempotentStorageTypeEnum.REDIS.name();
    /**
     * 二级存储
     */
    private String secondLevelType;
}
